package com.vision.core.cm.data;

import com.google.gwt.core.client.GWT;
import com.google.gwt.editor.client.Editor.Path;
import com.sencha.gxt.core.client.ValueProvider;
import com.sencha.gxt.data.shared.LabelProvider;
import com.sencha.gxt.data.shared.ModelKeyProvider;
import com.sencha.gxt.data.shared.PropertyAccess;
import com.vision.core.cm.db.data.Company;
import com.vision.core.cm.db.data.CompanyGroup;

/**
 * 
 * @author Mark
 *
 */
public interface CompanyGroupProperties extends PropertyAccess<CompanyGroup> {

	public static CompanyGroupProperties INSTANCE = GWT.create(CompanyGroupProperties.class);

	@Path("code")
	ModelKeyProvider<CompanyGroup> key();
	
	@Path("code")
	LabelProvider<CompanyGroup> nameLabel();

	ValueProvider<CompanyGroup, String> code();
	
	ValueProvider<CompanyGroup, Company> company();
	
	@Path("company.code")
	ValueProvider<CompanyGroup, String> companyCode();
	
	ValueProvider<CompanyGroup, String> description();
	
}
